package cn.onlineclass.dao;

import cn.onlineclass.entity.OMajor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OMajorMapper {
    public List<OMajor> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize,
                               @Param("inuse") boolean inuse, @Param("ratationid") Long ratationid);
    public int searchTotal(@Param("inuse") boolean inuse, @Param("ratationid") Long ratationid);
//    String name, boolean inuse, String description, long ratationid
    public int add(OMajor oMajor);
    public int update(OMajor oMajor);
    public int del(OMajor oMajor);
    public OMajor get(long id);
}
